#include"shm.hpp"

int main()
{
    Shm shm;
    shm.Create();
    shm.Attach();
    char* add = (char*)shm.GetAdd();
    memset(add,0,4096);
    std::string temp;
    while(true)
    {   
        if(add != temp)
        {
            std::cout<< add <<std::endl;
            temp = add;
            if(temp == "ABCD")
            {
                break;
            }
        }
    }
    shm.Detach();
    shm.Delete();

    return 0;
}